from presenter import basepresenter
from google.appengine.api import users

class RssPresenter(basepresenter.BasePresenter):

    def respondToGet(self):

        #get the articles
        articles = self.articletask.getRSS(10)
        self.template_values['articles'] = articles
        #get the base url
        baseurl = "http://" + self.request.environ['HTTP_HOST']
        self.template_values['baseurl'] = baseurl
        #get the view to draw the page
        self.view.showGetResponse(self.template_values)